package com.atguigu.gmall.realtime.utils

import java.util.ResourceBundle

/**
 * @author caodan
 * @date 2022-08-23 14:53
 * @version 1.0
 */
object PropsUtil {


  private val bundle: ResourceBundle = ResourceBundle.getBundle("config")

  /**
   * 根据key 的值返回value值
   *
   * @param key key 值
   * @return 结果
   */
  def getvalueBykey(key: String): String = {
    bundle.getString(key)
  }

}
